package com.pet.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value="收货地址表单")
public class AddressFormDTO {
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "省")
    @NotBlank(message = "省")
    private String province;

    @ApiModelProperty(value = "市")
    @NotBlank(message = "市")
    private String city;

    @ApiModelProperty(value = "县/区")
    @NotBlank(message = "县/区")
    private String town;

    @ApiModelProperty(value = "手机")
    @NotBlank(message = "手机")
    private String mobile;

    @ApiModelProperty(value = "详细地址")
    @NotBlank(message = "详细地址")
    private String street;

    @ApiModelProperty(value = "联系人")
    @NotBlank(message = "联系人")
    private String contact;

    @ApiModelProperty(value = "是否是默认(1是 0否)")
    private Integer isDefault;
}
